package com.situ.dao;

import java.util.List;

import com.situ.bean.StudentBean;

public interface StuDaoible {
    // 获得所有学生信息
    List<StudentBean> getAllStu() throws Exception;
    // 按学生姓名查询该学生信息
    StudentBean getStuByName(String stuName) throws Exception;
    // 添加学生信息 1->成功  0->失败
    int insertStu(StudentBean st) throws Exception;
    // 按专业查询学生信息 1->成功  0->失败
    List<StudentBean> getStuByMajorId(Integer majorId) throws Exception;
}
